//
// Created by Administrator on 24-8-23.
//

#ifndef RTOS_LED_H
#define RTOS_LED_H
#include "main.h"
#include "usart.h"

class LED {

public:
    LED(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);

    void SetGPIO_PIN(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin);

    void LED_ON();

    void LED_OFF();

private:

    GPIO_TypeDef *GPIO_PORT;
    uint16_t GPIO_Pin;
};


#endif //RTOS_LED_H
